// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Game1.cs" company="">
//   
// </copyright>
// <summary>
//   This is the main type for your game
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using Microsoft.Xna.Framework.GamerServices;

namespace ITU_vs_Zombies
{
    using ITU_vs_Zombies.Menu;
    using ITU_vs_Zombies.Menu.Screens;

    using Microsoft.Xna.Framework;

    /// <summary>
    /// This is the main type for your game
    /// </summary>
    public class Game1 : Microsoft.Xna.Framework.Game
    {
        #region Constants and Fields

        /// <summary>
        /// The graphics.
        /// </summary>
        GraphicsDeviceManager graphics;

        ScreenManager screenManager;

        #endregion

        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="Game1"/> class.
        /// </summary>
        public Game1()
        {
            this.graphics = new GraphicsDeviceManager(this);
            this.Content.RootDirectory = "Content";
            // Create the screen manager component.
            screenManager = new ScreenManager(this);
            Components.Add(screenManager);
            this.Components.Add(new GamerServicesComponent(this));
            // On Windows and Xbox we just add the initial screens
            AddInitialScreens();
        }

        #endregion

        #region Methods

        private void AddInitialScreens()
        {
            // Activate the first screens.
            screenManager.AddScreen(new BackgroundScreen());

            screenManager.AddScreen(new MainMenuScreen());
        }

        #endregion
    }
}